const Request = require('../../../request');

// 获取院系列表
export function getDepartmentBySearch(){
    return Request({
        url: 'api/department/list',
        method: 'POST'
    })
}

// 获取专业列表
export function getMajorBySearch(param){
    return Request({
        url: 'api/major/list',
        method: 'POST',
        data: param
    })
}


// 获取班级列表
export function getClassBySearch(param){
    return Request({
        url: 'api/class/list',
        method: 'POST',
        data: param
    })
}


export function getStudentBySearch(param){
    return Request({
        url: 'api/student/list',
        method: 'POST',
        data: param
    })
}


export function resetStudentPassword(param){
    return Request({
        url: 'api/student/reset',
        method: 'POST',
        data: param
    })
}


export function updateStudentInfo(param){
    return Request({
        url: 'api/student/update',
        method: 'POST',
        data: param
    })
}


export function addStudentInfo(param){
    return Request({
        url: 'api/student/add',
        method: 'POST',
        data: param
    })
}